package com.bianmaba.sso.resource.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Shenluw
 * 创建日期：2018/3/21 17:20
 */
@RestController
@RequestMapping("user")
public class UserController {

    private static final Logger log = LoggerFactory.getLogger(UserController.class);

    @RequestMapping("me")
    public Authentication me(Authentication authentication) {
        log.info("auth : {}", authentication);
        return authentication;
    }

}
